import os


def proto_generate():
    os.system("rm -rf ../../HinsLive/HinsLive/Network/NetworkModel.pb.swift")
    os.system("protoc NetworkModel.proto --swift_out=../../HinsLive/HinsLive/Network/")
    os.system("rm -rf ../backend/network/NetworkModel_pb2.py")
    os.system("protoc NetworkModel.proto --python_out=../backend/network/")


if __name__ == '__main__':
    proto_generate()
